Adwaita: treeview column header scrollbar top border
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 5 Mar 2016 01:09:22 +0000 (02:09 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 5 Mar 2016 01:10:24 +0000 (02:10 +0100)
add a top border in vertical scrollbars in treeviews.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index db842a8d33705be1791c75a9d35033d2d1fdab9e..a45b949c9183e84ce2332d807699ea2c6fef2315 100644 (file)
@@ -2069,7 +2069,7 @@ scrollbar {
 
   &.overlay-indicator {
     &:not(.dragging):not(.hovering) {
-      border: none;
+      border-color: transparent;
       opacity: 0.4;
       background-color: transparent;
 
@@ -2175,6 +2175,11 @@ scrollbar {
   }
 }
 
+treeview ~ scrollbar.vertical {
+  border-top: 1px solid $borders_color;
+  margin-top: -1px;
+}
+
 /**********
  * Switch *
  **********/
index 2323131fd5e44c0d1bef5304fd3852ed94643ebf..fa44278bbbf2b0e36a938f55981ec7c620b93b4b 100644 (file)
@@ -2178,15 +2178,11 @@ notebook > stack:not(:only-child) {
  * Scrollbars *
  **************/
 scrollbar {
-  /*
-    // disable steppers
-    @at-root * {
-      -GtkScrollbar-has-backward-stepper: false;
-      -GtkScrollbar-has-forward-stepper: false;
-    }
-  */
   background-color: #313434;
   transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
+  * {
+    -GtkScrollbar-has-backward-stepper: false;
+    -GtkScrollbar-has-forward-stepper: false; }
   scrollbar.top {
     border-bottom: 1px solid #1c1f1f; }
   scrollbar.bottom {
@@ -2219,7 +2215,7 @@ scrollbar {
     min-height: 4px;
     border-width: 6px; }
   scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
-    border: none;
+    border-color: transparent;
     opacity: 0.4;
     background-color: transparent; }
     scrollbar.overlay-indicator:not(.dragging):not(.hovering) slider {
@@ -2317,6 +2313,10 @@ scrollbar {
   scrollbar.horizontal button.up {
     -gtk-icon-source: -gtk-icontheme("pan-left-symbolic"); }
 
+treeview ~ scrollbar.vertical {
+  border-top: 1px solid #1c1f1f;
+  margin-top: -1px; }
+
 /**********
  * Switch *
  **********/
index b3284a079c1e584cfa773168af1495d25a528873..4f0c68485f690318d4b7dbe08d271cd5caba2cc9 100644 (file)
@@ -2188,15 +2188,11 @@ notebook > stack:not(:only-child) {
  * Scrollbars *
  **************/
 scrollbar {
-  /*
-    // disable steppers
-    @at-root * {
-      -GtkScrollbar-has-backward-stepper: false;
-      -GtkScrollbar-has-forward-stepper: false;
-    }
-  */
   background-color: #c3c4c4;
   transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
+  * {
+    -GtkScrollbar-has-backward-stepper: false;
+    -GtkScrollbar-has-forward-stepper: false; }
   scrollbar.top {
     border-bottom: 1px solid #9d9d99; }
   scrollbar.bottom {
@@ -2229,7 +2225,7 @@ scrollbar {
     min-height: 4px;
     border-width: 6px; }
   scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
-    border: none;
+    border-color: transparent;
     opacity: 0.4;
     background-color: transparent; }
     scrollbar.overlay-indicator:not(.dragging):not(.hovering) slider {
@@ -2327,6 +2323,10 @@ scrollbar {
   scrollbar.horizontal button.up {
     -gtk-icon-source: -gtk-icontheme("pan-left-symbolic"); }
 
+treeview ~ scrollbar.vertical {
+  border-top: 1px solid #9d9d99;
+  margin-top: -1px; }
+
 /**********
  * Switch *
  **********/